<?php

namespace common\logics;

use Yii;
use common\helpers\Url;

/**
 * 首页推荐面板
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class AdvertLogic extends \common\base\Model {

    /**
     * 广告
     * @inheritdoc
     */
    public static function getOne() {
        return [
            'id' => 1000,
            'title' => '广告',
            'description' => '广告',
            'thumb' => Url::attach('assets/adverts/01.png'),
            'weblink' => [
                'scheme' => 'Default',
                'route' => 'http://www.baidu.com',
                'data' => null,
                'title' => '广告',
            ],
        ];
    }

}
